Environment
- Hyper-V server 2016 Technical Preview 4
- Virtual machine running Windows 10 and nested vm's enabled (I can run Windows Phone emulators)
Note that I am running hyper-v (emulator on windows 10) inside a hyper-v server, but that is supported with the builds I have.
Problem description
I can create and start the vm, but after 3 seconds and this screen, the machine resets itself. I was able to grab a screenshot by pausing the virtual machine:
When I check out the log of the Visual Studio Emulator for Android manager
, this is what I see:
3> 4-12-2015 21:58:18 : [Critical] Could not launch 'VS Emulator 5" Lollipop (5.0) XXHDPI Phone' device. Exit code -532462766.
3> 4-12-2015 21:58:18 : [Critical] XDE Path: C:\Program Files (x86)\Microsoft XDE\10.0.10240.0\xde.exe
3> 4-12-2015 21:58:18 : [Critical] XDE Arguments: /sku Android /displayName "VS Emulator 5\" Lollipop (5.0) XXHDPI Phone" /memSize 2048 /diagonalSize 5 /video "1080x1920" /vhd "C:\Users\Geert\AppData\Local\Microsoft\VisualStudioEmulator\Android\Containers\Local\Devices\vhd\5_Lollipop_(5.0)_XXHDPI_Phone\image.vhd" /name "VS Emulator 5-inch Lollipop (5.0) XXHDPI Phone.geert"
3> 4-12-2015 21:58:18 : [Critical] XDE Exit Code: Unknown (-532462766)
When I check the event log
, I see this:
Application: xde.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ObjectDisposedException
at System.Net.Sockets.Socket.Bind(System.Net.EndPoint)
at Microsoft.Xde.Communication.XdePeerGuest.DetectGuest()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
What I did in order to try and fix it (but failed)
- Delete and re-install the virtual machines
- Delete and re-install the emulator images using the Visual Studio Emulator for Android
- Delete and re-install the network switches of the inner-hyper-v